<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1-3 flex 常见的导航栏之左侧导航自适应</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }

    .container {
      width: 1200px;
      margin: 0 auto;
    }

    nav {
      display: flex;
      border: solid 1px green;
      margin-top: 20px;
      align-items: center;
      height: 60px;
      box-shadow: 0 0 5px rgba(0, 0, 0, .2);
      background: #f3f3f3;
    }

    ul {
      list-style: none;
    }

    ul:nth-child(1) {
      display: flex;
      align-items: center;
      margin-right: auto;
    }

    ul:nth-child(1)>li {
      margin: 0 10px;
    }

    ul:nth-child(2)>li {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #9b59b6;
    }
  </style>
</head>

<body>
  <div class="container">
    <nav>
      <ul>
        <li>HOME</li>
        <li>JavaScript</li>
        <li>Vue.js</li>
        <li>React.js</li>
      </ul>
      <ul>
        <li>
        </li>
      </ul>
    </nav>
  </div>
</body>

</html>